/**
 * @module navigator页面操作
 */

import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';

/**
 * 返回指定页面
 * @param fd: IFeidaoAiMobile;	// 系统参数
 * @param key: string;		// 页面的key,可以通过原子操作获取
 * @see [api](https://dfeidao.gitee.io/atom-nodejs/modules/navigator____.html)
 * @example
 * ```ts
 * import go_back_set_key from '@dfeidao/atom-mobile/navigator/go-back-set-key';
 * go_back_set_key();
 * ```
 */

export default function go_back_set_key(fd: IFeidaoAiMobile, key: string) {
	return fd.page.props.navigation.goBack(key);
}
